package src.test.client.facade;

import src.test.client.presenter.ConcatPresenter;
import src.test.client.presenter.personPresenter;
import src.test.client.view.ConcatView;
import src.test.client.view.PersonView;

import com.google.gwt.user.client.ui.Widget;

public class AplicacionFacade {
	
	/**
	 * Create a remote service proxy to talk to the server-side Greeting service.
	 */

private static AplicacionFacade instance = new AplicacionFacade();

private AplicacionFacade(){
		super();
}
public static AplicacionFacade getInstance(){
	return instance;
}
	
	public Widget getAplicacion (){

		ConcatView view = new ConcatView();
		ConcatPresenter presenter = new ConcatPresenter(view);
		
		
		return (Widget)presenter.getView();
	}
	
	
	public Widget getPersona (){

		PersonView view = new PersonView();
		personPresenter presenter = new personPresenter(view);
		
		
		return (Widget)presenter.getView();
	}

}
